﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using Senparc.Weixin.Context;
using Senparc.Weixin.MP.Entities;

namespace MxWeiXinPF.WeiXinComm.CustomMessageHandler
{
    public class CustomMessageContext : MessageContext<IRequestMessageBase, IResponseMessageBase>
    {
        public CustomMessageContext()
        {
            base.MessageContextRemoved += new EventHandler<WeixinContextRemovedEventArgs<IRequestMessageBase, IResponseMessageBase>>(this.CustomMessageContext_MessageContextRemoved);
        }

        private void CustomMessageContext_MessageContextRemoved(object sender, WeixinContextRemovedEventArgs<IRequestMessageBase, IResponseMessageBase> e)
        {
            CustomMessageContext messageContext = e.MessageContext as CustomMessageContext;
            if (messageContext == null)
            {
            }
        }
    }
}
